<template>
    <div class="frame-sider-container">

        <admin-sider-group title="控制面板">
            <admin-sider-menu v-for="item in menu"  :item="item" v-power="item.power"  ></admin-sider-menu>
        </admin-sider-group>
        <admin-sider-group title="收藏">
            
        </admin-sider-group>
    </div>
    
</template>

<script>
export default {
    data(){
        
        let menu = [
            {
                title:'首页',
                icon:'fa-home',
                url:this.$url({app:'admin',controller:'index',action:'index'})
            },
            {
                title:'应用',
                icon:'fa-cube',
                power:'admin.app',
                url:this.$url({app:'admin',controller:'app',action:'index'})
            },
            {
                title:'文件',
                icon:' fa-file-o',
                power:'admin.file',
                url:this.$url({app:'admin',controller:'file',action:'index'})
            },
            {
                title:'管理员',
                power:'admin.user',
                icon:'fa-user-circle-o',
                url:this.$url({app:'admin',controller:'user',action:'index'})
            },
            {
                title:'设置',
                icon:'fa-cog',
                power:'admin.setting',
                url:this.$url({app:'admin',controller:'setting',action:'index'})
            }
        ];
        
        
        return {
            menu
        }
    },
    mounted(){
        
    }
}
</script>
